'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  //router.get('/', controller.home.index);

  //newsApi/getList    
  router.post('/newsApi/getList', controller.newsApi.getList);
  router.post('/newsApi/getInfo', controller.newsApi.getInfo);
  router.post('/productApi/getProductCatList', controller.productApi.getProductCatList);
  
  router.post('/productApi/getProductCatInfo', controller.productApi.getProductCatInfo);
  router.post('/productApi/getProductInfo', controller.productApi.getProductInfo);
  //装配相关接口
  router.post('/productApi/getSceneInfo', controller.productApi.getSceneInfo);
  

  router.post('/videoApi/getCategory', controller.videoApi.getCategory);

  
  router.post('/userApi/getFactoryInfo', controller.userApi.getFactoryInfo);
  router.post('/wxApi/shareConfig', controller.userApi.shareConfig);
  
  //登录接口
  router.post('/api/login', controller.user.login);

  
};
